﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page/MasterPage.master" AutoEventWireup="true"
    CodeFile="CommentsList.aspx.cs" Inherits="Page_CommentSite_CommentOfList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="FrameStyle">
        <div class="PageTitleStyle">
            <asp:Image ID="bgpicComment" runat="server" ImageUrl="~/Images/Comment/bgpicCommentTop.png" />
        </div>
        <div id="CommentsList">
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:GridView ID="GVSiteComment" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" CssClass="DataViewStyle" GridLines="None" 
                    onpageindexchanging="GVSiteComment_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label1" runat="server" Text="Comment"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LBCommentDetail" runat="server" class="DataViewTitleStyle" CommandArgument='<%#Eval("SiteCommentId")%>'
                                    OnClick="LBCommentDetail_Click" Text='<%# Eval("SiteCommentDetail") %>' 
                                    CausesValidation="False"></asp:LinkButton>
                            </ItemTemplate>
                            <ControlStyle Width="280px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label2" runat="server" Text="Poster"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LBPoster" runat="server" 
                                    style="color: #0000CC; text-decoration: none;" CommandArgument='<%#Eval("UserId")%>'
                                    Text='<%# Eval("UserId")%>' OnClick="LBPoster_Click" 
                                    CausesValidation="False"></asp:LinkButton>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label4" runat="server" Text="Date"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("SiteCommentDate") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnCommentsBack" runat="server" ImageUrl="~/Images/btnPublicBack.png"
                                CausesValidation="False" OnClick="btnCommentsBack_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>


        <div id="PostComment">
            <div class="TopStyle">
                Post Comment</div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <table>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" 
                                CssClass="TextboxStyle" Height="150px" Width="490px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 530px">
                            &nbsp;
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvComment" runat="server" ErrorMessage="Required."
                                Font-Bold="True" Font-Size="Small" ForeColor="#CC0000" 
                                ControlToValidate="txtComment"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnCommentSubmit" runat="server" 
                                ImageUrl="~/Images/btnPublicSubmit.png" onclick="btnCommentSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
